﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS_Entity.Dto.UserDto;
using WCS_Entity.User;

namespace WCS_Service.Interface
{
    /// <summary>
    /// 用户管理服务接口
    /// </summary>
    public interface IUserService : IBaseService<UsersEntity>
    {
        Task<UserDto> QueryUserAsync(int userId);
        Task<UserDto> UpdateUserAsync(UpdateUserDto dto);
        Task<UserDto> CreateUserAsync(CreateUserDto dto);
        Task<bool> DeleteUserAsync(int userId);
        Task<List<UserDto>> QueryAllUserAsync();
        Task<bool> LoginAsync(UserLoginDto dto);
        Task<bool> LogoutAsync();
        Task<Tuple<bool,string>> UpdatePwdAsync(int userId, string newPwd, string oldPwd);
    }
}
